//引入utils下DB.js
const mongoose = require('../utils/DB.js');
//创建数据模型
let userSchema = new mongoose.Schema({
    name:String,
    password:String
});
//3 创建数据模型
//4 建立数据模型 
let userModel = mongoose.model("userModel",userSchema,"users");

//导出
module.exports = userModel;